<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <div id="app">
    <!-- bingMsg省略括号会将event事件传递过去 -->
    <input type="text" v-bind:value="msg" v-on:input='bingMsg'>
    <br>
    <strong>{{msg}}</strong>
  </div>
  <script src="../../vue.js"></script>
  <script>
    const app = new Vue({
      el: '#app',
      data: {
        msg: '你好呀，李银河',
        // message: '你好呀，王小波'
      },
      methods: {
        bingMsg(event) {
          this.msg = event.target.value
          // console.log(event.target); // <input type='text'>
        }
      }
    })
  </script>
</body>

</html>